﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DapperExtensions.Mapper;
using Newtonsoft.Json;
using ZLWeb.WebApiEntityBase;
using ZilLion.Service.Core.Domain.EntityBase.JsonConverter;

namespace ZL.CRM.CommonEntity.AccOpr
{
    public class HouzhReturn
    {
        public decimal Xjye { get; set; }

        public decimal Zzye { get; set; }

        public int Acckzid { get; set; }

        /// <summary>
        ///  最新折扣类别id
        /// </summary>
        public int Zklbid { get; set; }

        /// <summary>
        ///  最新折扣类别失效时间(读取缓存)
        /// </summary>
        [JsonConverter(typeof(ChinaDateTimeConverter))]
        public DateTime? Zklbshixrq { get; set; }
    }

    public class HouzhReturnMapper : ClassMapper<HouzhReturn>
    {
        public HouzhReturnMapper()
        {
            Table("#houzhReturn");
            Map(f => f.Xjye).Column("Xjye");
            Map(f => f.Zzye).Column("Zzye");
            Map(f => f.Acckzid).Column("Acckzid");
            Map(f => f.Zklbid).Column("Zklbid");
            Map(f => f.Zklbshixrq).Column("Zklbshixrq");
        }

    }
}
